﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MINERP.MODEL.EM
{

    /// <summary>
    /// MessagesInfo类 
    /// </summary>
    public class MessagesInfo
    {

        private int _Id;
        public int Id
        {
            get { return this._Id; }
            set { this._Id = value; }
        }

        private UsersInfo _FromUser;
        public UsersInfo FromUser
        {
            get { return this._FromUser; }
            set { this._FromUser = value; }
        }

        private  UsersInfo _ToUser;
        public UsersInfo ToUser
        {
            get { return this._ToUser; }
            set { this._ToUser = value; }
        }

        private List<UsersInfo> _ToUserList;
        public List<UsersInfo> ToUserList
        {
            get { return this._ToUserList; }
            set { this._ToUserList = value; }
        }

        private string _Message;
        public string Message
        {
            get { return this._Message; }
            set { this._Message = value; }
        }

        private MessageTypeInfo _MessageType;
        public MessageTypeInfo MessageType
        {
            get { return this._MessageType; }
            set { this._MessageType = value; }
        }

        private int _MessageState;
        public int MessageState
        {
            get { return this._MessageState; }
            set { this._MessageState = value; }
        }

        private DateTime _MessageTime;
        public DateTime MessageTime
        {
            get { return this._MessageTime; }
            set { this._MessageTime = value; }
        }

        public MessagesInfo()
        {
            // TO DO CODE:
        }

        public MessagesInfo(int id)
        {
            _Id = id;
        }

    }
}
